package com.inmobi.androidsdk.bootstrapper;

import com.inmobi.commons.internal.InternalSDKUtil;
import org.json.JSONException;
import org.json.JSONObject;

public class IMAIConfigParams
{
  int a = 3;
  int b = 10;
  int c = 120;

  public IMAIConfigParams()
  {
    setFromJSON(new JSONObject());
  }

  public int getMaxRetry()
  {
    return this.a;
  }

  public int getPingTimeOut()
  {
    return 1000 * this.c;
  }

  public int getRetryInterval()
  {
    return 1000 * this.b;
  }

  public void setFromJSON(JSONObject paramJSONObject)
  {
    if (paramJSONObject == null)
      return;
    this.a = InternalSDKUtil.getIntFromJSON(paramJSONObject, "mr", this.a, 0, 2147483647);
    this.b = InternalSDKUtil.getIntFromJSON(paramJSONObject, "pint", this.b, 1, 2147483647);
    this.c = InternalSDKUtil.getIntFromJSON(paramJSONObject, "pto", this.c, 1, 2147483647);
  }

  public JSONObject toJSON()
    throws JSONException
  {
    JSONObject localJSONObject = new JSONObject();
    localJSONObject.put("mr", this.a);
    localJSONObject.put("mr", this.b);
    return localJSONObject;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.inmobi.androidsdk.bootstrapper.IMAIConfigParams
 * JD-Core Version:    0.6.2
 */